import CacheRoute, { CacheSwitch } from "react-router-cache-route";
import config from "../config";

const Layout = () => {
  const path = "/" + config.projectName;
  return (
    <CacheSwitch>
      <CacheRoute
        when="always"
        exact
        path={`${path}/Index`}
        component={Questionnaire}
      />
    </CacheSwitch>
  );
};

export default Layout;
